home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / EDITORS / DNOT.ZIP;1 / NOTGNU.ST < prev    next >
Encoding:
Text File  |  1993-11-30  |  3.2 KB  |  105 lines

  1. ;
  2. ; Startup file for notGNU emacs (notgnu.st).
  3. ; This form of file can be loaded at anytime using
  4. ; the extended command load-file.
  5. ;
  6.  
  7. ; dnot.exe sometimes detects incorrect screen size on older
  8. ; monitors. To avoid this, uncomment the following line.
  9. ; if DOS (set-window-size '25,80)
  10.  
  11. ; Default is to make backups; uncommenting the following
  12. ; line will turn backups off.
  13. (toggle-make-backups)
  14.  
  15.  
  16. ; I like to make sure I don't edit a file in 2 places
  17. ; the default is NOT to check so this turns it on
  18. (toggle-check-file-timestamp)
  19.  
  20.  
  21. ; Default is not to display linenumber in the modeline; 
  22. ; The following toggles line numbers on.
  23. (toggle-show-linenumber)
  24.  
  25. ; Default is to highlight the background on mouse selections.
  26. ; Uncomment if you want to highlight the foreground (text) instead:
  27. ; (set-select-highlight 'f)
  28.  
  29. ; My UNIX machines hate to see my C source with all those
  30. ; dang CR in them (network shared disks) - default is CR
  31. ; is written for all files, this disables CR from being written
  32. ; [Should remain disabled for DOS machines]
  33. ; (toggle-just-write-newline)
  34.  
  35.  
  36. ; GNU-like autocompletion is not set by default; the GNU-ness
  37. ; isn't perfect yet. :(  Uncomment if you are a die-hard GNU.
  38. ; (set-gnu)
  39.  
  40.  
  41. ; Default autosave interval is 15 seconds.
  42. ; Let's be a little more macho than that.
  43. if !DOS (set-autosave-inc '120)
  44.  
  45. ; The following toggles the time display in the title bar under
  46. ; Windows. Uncomment if you are using a utility like 'barclock',
  47. ; 'tick-it' etc..
  48. ; if Win3  (display-time)
  49. ; if WinNT (display-time)
  50.  
  51. ; Various keybindings to make me happy
  52. ; "\^x" is ctrl-x
  53. ; "\F1" is function key F1
  54. ; "\Eo" is meta-o (or ESC-o)
  55. ; "\Kp-+" is keypad +
  56. ; "\Delete" is a named key
  57. ; "\SDelete" is shift + a named key
  58. ; "\CDelete" is control + a named key
  59.  
  60. (global-set-key "\F1"         'goto-line)
  61. (global-set-key "\F8"         'other-window)
  62. (global-set-key "\e+"         'enlarge-window)
  63. (global-set-key "\e-"         'shrink-window)
  64. (global-set-key "\^z"         'scroll-one-line-up)
  65. (global-set-key "\ez"         'scroll-one-line-down)
  66. (global-set-key "\^x`"        'next-error)
  67.  
  68. (global-set-key "\^x\^i"      'insert-file)
  69. (global-set-key "\^x!"        'shell-command)
  70. (global-set-key "\^xu"        'undo)
  71. (global-set-key "\^_"         'undo)
  72.  
  73. ; these are key bindings that i am entering in.
  74. (global-set-key "\^xf"        'find-file)
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. ; Uncomment the ones you like:
  82. ; (global-set-key "\efx"        'save-buffers-kill-emacs) ; Alt-F x
  83. ; (global-set-key "\Insert"     'set-mark-command)        ; A Demacs thing
  84.  
  85. ; These they will fail in the DOS version because
  86. ;   (1) these are not legal DOS commands or
  87. ;   (2) fkeys beyond 10 are not visible.
  88. ;
  89. ; ``if <os>'' and ``if !<os>'' are supported; case sensitive!
  90. ; Legal <os> values are DOS, Win3, WinNT, X11
  91.  
  92. if !DOS (global-set-key "\F2"         'shell-window)
  93. if !DOS (global-set-key "\F9"         'make)
  94. if !DOS (global-set-key "\F10"        'next-error)
  95. if !DOS (global-set-key "\F12"        'undo)
  96. if !DOS (global-set-key "\CBackspace" 'backward-kill-word)
  97. if !DOS (global-set-key "\MBackspace" 'backward-kill-word)
  98.  
  99. ; Uncomment the ones you like:
  100. ; if  DOS (global-set-key "\^z" 'shell-command)
  101. ; if !DOS (global-set-key "\^z" 'shell-window)
  102.  
  103.  
  104.  
  105.